﻿[assembly: WebActivator.PreApplicationStartMethod(typeof(MongoServices.Example.App_Start.MongoServicesExampleStartup), "Initialize")]

namespace MongoServices.Example.App_Start
{
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using System.Web.Mvc;
	using MongoServices.Example.Utilities;
	using MongoDB.Bson;

	public class MongoServicesExampleStartup
	{
		public static void Initialize()
		{
			ModelBinders.Binders.Add(typeof(ObjectId), new ObjectIdModelBinder());
			MongoServicesConfig.Initialize();
		}
	}
}